package com.fanjia.crm.mapper;

import com.fanjia.crm.model.User;

import java.util.List;
import java.util.Map;

/**
 * Created by FanJia on 2020/9/19 21:15
 */
public interface UserMapper {
    public User findByUsername(String username);

    public int findCountByMap(Map<String, Object> params);

    public List<User> findListByMap(Map<String, Object> params);

    public void insert(User user);

    public void insertUserIdAndRoleId(int userId, Integer roleId);

    public User findUserAndRoleByUserId(Integer userId);

    public void updateUserByUser(User user);

    public void deleteRoleById(int userId);
}
